/*
 * @Author: tkp
 * @Date: 2025-01-03 16:24:13
 */
import { authSystemAdd, authSystemModify, authSystemQuery, authSystemDel, } from '@/utils/api'
export class IndexBloc {
    queryForm = {
        systemName: '',
        enable: '',
    }
    addPop = false
    rowItem = ''
    editPop = false
    enableList = [
        { label: '可用', value: 1 }, { label: '不可用', value: 0 },
    ]
    tableOption = [
        { label: '系统ID', prop: 'systemId', },
        { label: '系统名称', prop: 'systemName', },
        { label: '是否可用', prop: 'enable', slot: 'enable', },
    ]
    tableData = []
    load(data) {
        authSystemQuery(data).then(res => {
            this.tableData = res.data || []
        })
    }
    modify(data) {
        return authSystemModify(data)
    }
    add(data) {
        return authSystemAdd(data)
    }
    del(data) {
        return authSystemDel(data)
    }
}